///*
// * load_EBFV1_PreProcessorData.cpp
// *
// *  Created on: 29/12/2008
// *      Author: rogerio
// */
//
//#include "GeomData.h"
//#include "pre-processorList.h"
//
//namespace PRS{
//
///*
//	 * Load data from dat file related to EBFVLM1 (Edge-Based Finite Volume
//	 * Locally Modified) formulation.
//	 *
//	 */
//	void load_EBFV1Local_preprocessorData(pMesh theMesh, void* ptr, string filename){
//
//		int ndom;
//		load_EBFV1_preprocessorData(theMesh,ptr,"FS-2D-hom",ndom);
//
//		// open preprocessor file
//		ifstream fid;
//		fid.open(filename.c_str());
//		if (!fid.is_open()){
//			char str[256];
//			sprintf(str,"File %s could not be opened or it does not exist\n",filename.c_str());
//			throw Exception(__LINE__,__FILE__,str);
//		}
//
//		// object handler for preprocessor data
//		GeomData *pGCData = (GeomData*)ptr;
//
//		// edge matrix of coefficients
//		dblarray emat(4);
//
//		// Pass pp data to mesh data structure
//		EIter eit = M_edgeIter(theMesh);
//		while (pEntity edge = EIter_next(eit)){
//			// read data from file
//			fid >> emat[0] >> emat[1] >> emat[2] >> emat[3];
//
//			// set data to mesh structure
//			pGCData->setEdge_Matrix(edge,emat);
//		}
//		EIter_delete(eit);
//
//		// check reading (DEBUG PORPOUSE)
////		eit = M_edgeIter(theMesh);
////		while (pEntity edge = EIter_next(eit)){
////			pGCData->getEdge_Matrix(edge,emat);
////			cout << emat[0] << " " << emat[1] << " " << emat[2] << " " << emat[3] << endl;
////		}
////		EIter_delete(eit);
//		//throw 1;
//	}
//}
